
workspace "voice_processing"
	configurations { "Debug", "Release" }
	platforms { "Win32","Linux" }
	location "build"

filter { "platforms:Win32" }
    system "windows"
    architecture "x32"
	defines { "_WIN32", "WIN32" ,"KLIB_EXPORTS"}
	
filter { "platforms:Linux" }
    system "linux"
    architecture "x64"	
	defines { "LINUX", "linux" ,"POSIX"}
	
	
filter "configurations:Debug"
	defines { "DEBUG" , "_DEBUG"}
	symbols "On"
	optimize "Debug"
	
filter "configurations:Release"
	defines { "NDEBUG" }
	symbols "Off"
	optimize "Speed"
	vectorextensions "SSE2"

	
project "voice_processing"
	kind "StaticLib"
	language "C++"
	pic "On"
	files{
		"include/*.h",
		"spl/**.h",
		"spl/*.c",
		"vad/*.h",
		"vad/*.c",	
		"agc/*.h",
		"agc/*.c",
		"ns/*.h",
		"ns/*.c",
		"utility/*.h",
		"utility/*.c",
		"utility/*.cpp",
		"rnnoise/*.h",
		"rnnoise/*.c",
		"aecm/*.h",
		"aecm/*.c",
		"aec/*.h",
		"aec/*.c",	
	}

	includedirs{
		"include",
	}	
	
	
project "example1"
	kind "ConsoleApp"
	language "C++"

	files{
		"examples/example1.cpp",
	}

	includedirs{
		"include",
	}
	links{
		"voice_processing"
	}	
	filter { "platforms:Linux" }
		links{"pthread","rt"}	
	
	
project "converter"
	kind "ConsoleApp"
	language "C++"

	files{
		"examples/converter.cpp",
	}

	includedirs{
		"include",
	}
	links{
		"voice_processing"
	}	
	filter { "platforms:Linux" }
		links{"pthread","rt"}
	
